<template>
  <div class="home">
    <el-container>
      <el-aside width="200px">
        <Aside :isCollapse="isCollapse" />
      </el-aside>
      <el-container>
        <el-header>
          <Header :handleCollapse="handleCollapse" :isCollapse="isCollapse" />
        </el-header>
        <el-main>
          <Main />
        </el-main>
      </el-container>
    </el-container>
    <Add />
    <Echat />
  </div>
</template>
<script setup>
import Add from '../components/addBook.vue'
import Echat from '../components/myEchart.vue'
import Header from '../components/myHeader.vue'
import Aside from '../components/myAside.vue'
import Main from '../components/myMain.vue'
import { ref } from 'vue'

const isCollapse = ref(false)
const handleCollapse = () => {
  isCollapse.value = !isCollapse.value
}
</script>
<style lang="less" scoped>
.el-aside {
  width: auto;
  background-color: #545c64;
  width: auto;
  overflow: hidden;
}

.el-container {
  height: 100vh;
}

.el-main {
  display: flex;
}

.el-header {
  background-color: #fff;
}
</style>
